export interface MmC3d_InferenceResult_Item {
  class_id?: string;
  class_name?: string;
  confidence: number;
  frame: {
    width: number;
    height: number;
  };
  bbox: {
    left: number;
    top: number;
    width: number;
    height: number;
  };
  color?: Array<string | number>;
  keypoints?: any[];
}

export interface MmC3d_InferenceResult {
  camera_id: string;
  model: string;
  pipeline_id: string;
  pipeline?: string;
  Warning?: boolean;
  action?: Record<string, any>;
  results: Array<MmC3d_InferenceResult_Item>;
}

export interface T_RoiSingleOfApi {
	cameraId: string;
	/** 识别区roi名称 */
	label: string;
	points: Array<number[]>;
	/** roi区域 是否取反 true 区域内 否则区域外 */
	positive: boolean;
	/** 0-前处理 1-后处理 */
	stage: 0 | 1;
	timeStamp: number;
	/** 数据库中已存在的roiId */
	_id: string;
}

export type T_RoiConfigItem_Api = T_RoiSingleOfApi;
